<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Cart extends Model
{
    //
   protected  $table = 'dg_cart';

   protected $fillable=['user_id','product_id','product_sku_id','num','product_name','spec_info','spec_type'];

   public function product()
   {
    return  $this->hasOne('\App\Models\Product','id','product_id');
   }
   public function product_sku()
   {
    return $this->hasOne('\App\Models\ProductSku','id','product_sku_id');
   }
   
}
